<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('getreorder')}',page: true}" lay-filter="edit-table" data-url="{:url('editPermissions')}" data-key="permission_id">
    <thead>
    <tr>
        <th lay-data="{field:'order_id', width:80, sort: true}">ID</th>
        <th lay-data="{field:'name', edit:'number', sort: true}">公司名称</th>
        <th lay-data="{field:'phone',sort: true,width:200}">电话</th>
        <th lay-data="{field:'create_time',sort: true,width:200}">申请提交时间</th>
        <th lay-data="{toolbar:'#status'}">状态</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="status">
        {{# if (d.status==1) { }}
        <span class="layui-btn layui-btn-sm layui-btn-normal">申请中</span>
        {{# } else if (d.status==2) { }}
        <span class="layui-btn layui-btn-sm">通过</span>
        {{# } else if (d.status==3) { }}
        <span class="layui-btn layui-btn-sm layui-btn-danger">未通过</span>
        {{# } }}
</script>
